package com.groupseven.backend.domain;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

public class Personalmsg {

    @NotBlank(message = "真实姓名不能为空！")
    @Length(min = 1, max = 20, message = "长度要在2到20之间")
    public String Realname;
    //真实姓名

    @NotBlank(message = "性别不能为空！")
    public String ssex;
    //性别(字典控制)

    @NotBlank(message = "职工号不能为空！")
    @Length(min = 1, max = 20, message = "长度要在2到20之间")
    public String EmployeeNumber;
    //职工号

    @NotBlank(message = "身份证号不能为空！")
    @Length(min =17, max =18, message = "长度要为18")
    public String IdcardNumber;
    //身份证号

    @NotBlank(message = "所属单位不能为空！")
    @Length(min = 1, max = 20, message = "长度要在2到20之间")
    public String Affiliation;
    //所属单位

    @NotBlank(message = "职工名称不能为空！")
    public String EmployeeNmae;
    //职工名称(字典控制)

    @NotBlank(message = "所属单位不能为空！")
    public String LeastStudyRecord;
    //最后学历(字典控制)

    @NotBlank(message = "联系电话不能为空！")
    @Length(min = 10, max = 11, message = "长度要为11")
    public String PhoneNumber;
    //联系电话

    public String StudyExperiences;
    //科研经历

    @NotBlank
    public String username;
    //用户名


    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getRealname() {
        return Realname;
    }

    public void setRealname(String realname) {
        Realname = realname;
    }

    public String getSsex() {
        return ssex;
    }

    public void setSsex(String ssex) {
        this.ssex = ssex;
    }

    public String getEmployeeNumber() {
        return EmployeeNumber;
    }

    public void setEmployeeNumber(String employeeNumber) {
        EmployeeNumber = employeeNumber;
    }

    public String getIdcardNumber() {
        return IdcardNumber;
    }

    public void setIdcardNumber(String idcardNumber) {
        IdcardNumber = idcardNumber;
    }

    public String getAffiliation() {
        return Affiliation;
    }

    public void setAffiliation(String affiliation) {
        Affiliation = affiliation;
    }

    public String getEmployeeNmae() {
        return EmployeeNmae;
    }

    public void setEmployeeNmae(String employeeNmae) {
        EmployeeNmae = employeeNmae;
    }

    public String getLeastStudyRecord() {
        return LeastStudyRecord;
    }

    public void setLeastStudyRecord(String leastStudyRecord) {
        LeastStudyRecord = leastStudyRecord;
    }

    public String getPhoneNumber() {
        return PhoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        PhoneNumber = phoneNumber;
    }

    public String getStudyExperiences() {
        return StudyExperiences;
    }

    public void setStudyExperiences(String studyExperiences) {
        StudyExperiences = studyExperiences;
    }

    public Personalmsg(String realname, String ssex, String employeeNumber, String idcardNumber, String affiliation, String employeeNmae, String leastStudyRecord, String phoneNumber, String studyExperiences, String username) {
        Realname = realname;
        this.ssex = ssex;
        EmployeeNumber = employeeNumber;
        IdcardNumber = idcardNumber;
        Affiliation = affiliation;
        EmployeeNmae = employeeNmae;
        LeastStudyRecord = leastStudyRecord;
        PhoneNumber = phoneNumber;
        StudyExperiences = studyExperiences;
        this.username = username;
    }
}
